package com.ruoyi.test5.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.test5.mapper.ResourcerequestMapper;
import com.ruoyi.test5.domain.Resourcerequest;
import com.ruoyi.test5.service.IResourcerequestService;

/**
 * 资源请求Service业务层处理
 * 
 * @author 22082112
 * @date 2025-07-10
 */
@Service
public class ResourcerequestServiceImpl implements IResourcerequestService 
{
    @Autowired
    private ResourcerequestMapper resourcerequestMapper;

    /**
     * 查询资源请求
     * 
     * @param requestId 资源请求主键
     * @return 资源请求
     */
    @Override
    public Resourcerequest selectResourcerequestByRequestId(String requestId)
    {
        return resourcerequestMapper.selectResourcerequestByRequestId(requestId);
    }

    /**
     * 查询资源请求列表
     * 
     * @param resourcerequest 资源请求
     * @return 资源请求
     */
    @Override
    public List<Resourcerequest> selectResourcerequestList(Resourcerequest resourcerequest)
    {
        return resourcerequestMapper.selectResourcerequestList(resourcerequest);
    }

    /**
     * 新增资源请求
     * 
     * @param resourcerequest 资源请求
     * @return 结果
     */
    @Override
    public int insertResourcerequest(Resourcerequest resourcerequest)
    {
        return resourcerequestMapper.insertResourcerequest(resourcerequest);
    }

    /**
     * 修改资源请求
     * 
     * @param resourcerequest 资源请求
     * @return 结果
     */
    @Override
    public int updateResourcerequest(Resourcerequest resourcerequest)
    {
        return resourcerequestMapper.updateResourcerequest(resourcerequest);
    }

    /**
     * 批量删除资源请求
     * 
     * @param requestIds 需要删除的资源请求主键
     * @return 结果
     */
    @Override
    public int deleteResourcerequestByRequestIds(String[] requestIds)
    {
        return resourcerequestMapper.deleteResourcerequestByRequestIds(requestIds);
    }

    /**
     * 删除资源请求信息
     * 
     * @param requestId 资源请求主键
     * @return 结果
     */
    @Override
    public int deleteResourcerequestByRequestId(String requestId)
    {
        return resourcerequestMapper.deleteResourcerequestByRequestId(requestId);
    }
}
